<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
use App\Traits\WorkerRequest;
use App\Traits\UserToken;
use Illuminate\Http\Request;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests, WorkerRequest, UserToken;

    public function __construct(Request $request)
    {
        $data = $request->all();
        self::$client_id = isset($data['client_id'])?$data['client_id']:'';//客户端client_id
        self::$request = isset($data['message'])?$data['message']:[];//接受所有参数
    }
}
